package dava.testmodel;


import dava.csvgenerator.CsvBean;



/**
 *
 * @author dava
 */
@CsvBean(name = "calculation")
public class Calculation {

    public double getPrice(Phone phone) {
        double sum = 0.0;
        for (InvoicedItem item : phone.getItems()) {
            sum += item.getFinalPriceNetOfVAT();
        }
        return sum;
    }
}
